package com.example.demo.service.impl;

import com.example.demo.dao.RoomPictureDao;
import com.example.demo.entity.RoomPicture;
import com.example.demo.service.RoomPictureService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoomPictureServicelmpl implements RoomPictureService {
    @Resource
    RoomPictureDao roomPictureDao;
    @Override
    public List<RoomPicture> selectroompictures(int picture_room_no) {
        return roomPictureDao.selectroompictures(picture_room_no);
    }

    @Override
    public int insert(RoomPicture roomPicture) {
        return roomPictureDao.insert(roomPicture);
    }

    @Override
    public void delete(int picture_id) {
        roomPictureDao.delete(picture_id);
    }

    @Override
    public RoomPicture selectid(int picture_id) {
        return roomPictureDao.selectid(picture_id);
    }

    @Override
    public List<RoomPicture> list() {
        return roomPictureDao.list();
    }
}
